

def write_file(path: str, content: str) -> None:
    """
    Write the content to the file.
    
    Args:
        path: The path to the file to write to.
        content: The content to write to the file.
    Raises:
        Exception: If an error occurs while writing to the file.
    """
    with open(path, 'w', encoding="utf-8") as file:
        file.write(content)

def read_file(path: str) -> str:
    """
    Read the content from the file.
    
    Args:
        path: The path to the file to read from.

    Returns:
        The content of the file.
    Raises:
        FileNotFoundError: If the file does not exist.
        Exception: If an error occurs while reading the file.
    """
    try:
        with open(path, 'r', encoding="utf-8") as file:
            content = file.read()
        return content
    except FileNotFoundError:
        raise FileNotFoundError(f"The file {path} does not exist")
    except Exception as e:
        raise e